package com.example.server.service;

import cn.example.server.dto.User;
import com.example.server.utils.DataUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: YAOZUN
 * @Date: Created in 17:10 2018/12/18 0018
 * @Description:
 */
@Service
public class RestServiceImpl implements RestService{

    private static Logger logger = LoggerFactory.getLogger(RestServiceImpl.class);
    @Override
    public String postString(String msg) {
        logger.info("-----------进入restful方法,客户端参数："+ msg +"--------------");
        return msg;
    }

    @Override
    public String getString(String msg) {
        logger.info("-----------进入restful方法,客户端参数："+ msg +"--------------");
        return msg;
    }

    @Override
    public List<User> bigMsg() {
        return DataUtil.getUser();
    }
}
